package cn.yudao.ymcc.service.impl;

import cn.yudao.ymcc.domain.PayFlow;
import cn.yudao.ymcc.mapper.PayFlowMapper;
import cn.yudao.ymcc.service.IPayFlowService;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author whale.jia
 * @since 2022-08-18
 */
@Service
public class PayFlowServiceImpl extends ServiceImpl<PayFlowMapper, PayFlow> implements IPayFlowService {

    @Override
    public PayFlow selectByOrder(String orderNo) {

        Wrapper<PayFlow> wrapper = new EntityWrapper<>();
        wrapper.eq("out_trade_no",orderNo);
        PayFlow payFlow = selectOne(wrapper);
        return payFlow;
    }
}
